package com.zxh.spDemo.dao;

import com.zxh.spDemo.domain.User;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface UserDao extends BaseDao{

	List<User> getusers();
	User getUserByid(long userid);
	User getUserByusername(String username);
	void deleteuser(long userid);
	void deleteuserrole(long userid,long roleid);
	void adduserrole(long userid,long roleid);
	void adduser(User user);
	void updateuser(User user);
	void deleteuseroles(long uid);
}
